#名称:Backdream
#时间2022/12/20  16:24

from config.config import HOST


class BasePage:

    def __init__(self, driver):
        self.driver = driver
        self.url = "http://{}{}".format(HOST, self.url)


    def open(self):
        """打开当前页面"""
        self.driver.get(self.url)


    def find_element(self, locator):
        """根据传递的定位器，查找元素"""
        return self.driver.find_element(*locator)
